const { Schema, model } = require('mongoose');

const lessorsSchema = new Schema({
    account: String,
    password: String,
    telephone: String,
    state:{
        type:Number,
        default:1
    },
    credits:{
        type:Number,
        default:90
    },	
}, { versionKey: false });

const lessorsModel = model('lessorsModel', lessorsSchema, 'lessors');

module.exports.lessorsModel = lessorsModel;
